import { createPinia } from 'pinia';
import type { App } from 'vue';
import { useLoginStore } from '@/store/login';

const pinia = createPinia();

function registerStore(app: App<Element>) {
  app.use(pinia);
  // 使用loginStore中的loadLocalCacheAction方法，动态加载路由
  const loginStore = useLoginStore();
  loginStore.loadLocalCacheAction();
}
export default registerStore;
